import pymysql
def open_mysql():
    try:
        connect = pymysql.connect(
            host='localhost',
            port=3306,
            user='root',
            password='123456',
            database='dodan_movie',  # 确保数据库名正确
            charset='utf8mb4'
        )
        print('连接成功')
    

def get_best_movie(self):
    
    